package com.xunk.system.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Objects;

/**
 * @ProjectName: xunk
 * @Package: com.xunk.buz.vo
 * @ClassName: EquipmentVO
 * @Author: dongxiaoxin
 * @Description: 场景下的设备详细信息
 * @Date: 2021/4/7 14:00
 * @Version: 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class EquipmentVO implements Serializable {

    /**
     *  动作描述
     */
    private String describe;
    /**
     *  动作名称
     */
    private String actionName;
    /**
     *  动作标识
     */
    private String actionCmd;
    /**
     *  设备id
     */
    private String deviceSn;
    /**
     *  设备名
     */
    private String deviceName;
    /**
     *  状态
     */
    private String status;

    /**
     *  设备类型
     */
    private String deviceType;
    /**
     *  设备是否在线
     */
    private String online;

    @Override
    public boolean equals(Object o) {
        if (o == null || getClass() != o.getClass()) return false;
        EquipmentVO that = (EquipmentVO) o;
        return this.getDeviceSn().equals(that.getDeviceSn());
    }

    @Override
    public int hashCode() {
        return Objects.hash(describe, actionName, deviceSn, deviceName, status, deviceType, online);
    }
}
